🏢 Client List

Apex Projects Solutions - Client Management System

0

Total Clients

0

Active This Month

0

GST Registered

Client ID Company Name Contact Person Email Phone GST No. City Added Date Actions
Loading clients...
`; printWindow.document.write(content); printWindow.document.close(); } // Print Client function printClient(rowId) { downloadClientPDF(rowId); } // Share Client function shareClient(rowId) { const client = clients.find(c => c.rowId === rowId); if (!client) return; const shareText = `📋 CLIENT PROFILE - APEX PROJECTS SOLUTIONS\n` + `${'='.repeat(50)}\n\n` + `Company: ${client.companyName || '-'}\n` + `Client ID: ${client.clientId || '-'}\n` + `Type: ${client.clientType || 'Regular'}\n\n` + `CONTACT DETAILS:\n` + `Contact Person: ${client.contactPerson || '-'}\n` + `Designation: ${client.designation || '-'}\n` + `Email: ${client.email || '-'}\n` + `Phone: ${client.phone || '-'}\n` + `${client.alternatePhone ? 'Alt Phone: ' + client.alternatePhone + '\n' : ''}` + `${client.website ? 'Website: ' + client.website + '\n' : ''}\n` + `ADDRESS:\n` + `${client.address || '-'}\n` + `${client.city || '-'}, ${client.state || '-'} - ${client.pincode || '-'}\n` + `${client.country || 'India'}\n\n` + `${client.gstNo ? 'GST: ' + client.gstNo + '\n\n' : ''}` + `${client.notes ? 'Notes: ' + client.notes + '\n\n' : ''}` + `Date Added: ${client.dateAdded ? new Date(client.dateAdded).toLocaleDateString('en-IN') : '-'}\n\n` + `Shared from APEX Projects Solutions CRM`; if (navigator.share && /mobile/i.test(navigator.userAgent)) { navigator.share({ title: `Client Profile - ${client.companyName}`, text: shareText }).catch(() => { copyToClipboard(shareText); }); } else { copyToClipboard(shareText); } } function copyToClipboard(text) { const textarea = document.createElement('textarea'); textarea.value = text; textarea.style.position = 'fixed'; textarea.style.opacity = '0'; document.body.appendChild(textarea); textarea.select(); try { document.execCommand('copy'); showNotification('✅ Client details copied! You can now paste in email/WhatsApp', 'success'); } catch (err) { showNotification('❌ Failed to copy. Please try again.', 'error'); } document.body.removeChild(textarea); }